﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Domain.Model.Entidades.Comparendos;
using Infrastructure.Base.InDatabase;
using Domain.Model.Comparendos;
using Application.WebServices;
using Application.Model;

namespace InfraccionesWeb.Formularios
{
    public partial class Comparendos : System.Web.UI.Page
    {

        //referencia a los servicios web de Infracciones
        ServicioInfracciones webServices = new ServicioInfracciones();


        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                llenarGrilla();
            }

        }
        private void llenarGrilla()
        {
            List<ComparendoDTO> lista = webServices.AllComparendos();
            gdwComparendos.DataSource = lista;
            gdwComparendos.DataBind();
        }


    }
}